﻿
using APIDAL;
using MD5Hash;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace APIBLL
{
    public class UserBLL
    {
        public UserBLL(UserDAL dAL)
        {
            DAL = dAL;
        }

        public UserDAL DAL { get; }


        public int AddUser(User user)
        {
            return DAL.AddUser(user);
        }

        public User GetUser(string username, string pwd)
        {
            return DAL.GetUser(username, pwd);
        }

    }
}
